#ifndef _MY_TCPCLIENT_H_
#define _MY_TCPCLIENT_H_

#include<stdio.h>
#include<stdlib.h>
#include<string.h> // memset 
#include<time.h>
#include<string>
#include<iostream>
#include <memory>

#include<sys/types.h> //使用网络包含的库
#include<unistd.h>
#include<arpa/inet.h>
#include<netinet/in.h>  
#include<thread>

class TcpClient {
public:
    int cli_fd;
    
    TcpClient ();
    TcpClient ( const char * _host , int port );
    ~TcpClient();
    int start();
    
    virtual int worker();
private: 
    struct sockaddr_in serv ; 

};


int testTcpClient();

#endif // _MY_CLIENT_H_